//
//  MineWalletHeaderView.m
//  YongChuanTradingArea
//
//  Created by Vivian on 2017/9/11.
//  Copyright © 2017年 李冰. All rights reserved.
//

#import "MineWalletHeaderView.h"

@implementation MineWalletHeaderView
- (void)awakeFromNib{
    [super awakeFromNib];
    self.balanceLabel.attributedText = [self.balanceLabel.text changeFont:[UIFont boldSystemFontOfSize:23] range:NSMakeRange(self.balanceLabel.text.length - 1, 1)];
}

- (void)setModel:(MineWalletModel *)model{
    _model = model;
    self.balanceLabel.text = [NSString stringWithFormat:@"%.2f",[_model.Balance floatValue]];
    self.balanceLabel.attributedText = [self.balanceLabel.text changeFont:[UIFont boldSystemFontOfSize:23] range:NSMakeRange(self.balanceLabel.text.length - 1, 1)];
    self.incomeLabel.text = [NSString stringWithFormat:@"￥%.2f",[_model.Income floatValue]];
    self.withdrawLabel.text = [NSString stringWithFormat:@"￥%.2f",[_model.Withdrawals floatValue]];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
